home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / xorg / Xwacom.h < prev   
Encoding:
C/C++ Source or Header  |  2011-08-24  |  2.4 KB  |  63 lines

  1. /*
  2.  * Copyright 2003 by John Joganic <john@joganic.com>
  3.  * Copyright 2003 - 2009 by Ping Cheng <pingc@wacom.com> 
  4.  *
  5.  * This program is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU General Public License
  7.  * as published by the Free Software Foundation; either version 2
  8.  * of the License, or (at your option) any later version.
  9.  *
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program; if not, write to the Free Software 
  17.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18.  */
  19.  
  20. #ifndef __XORG_XWACOM_H
  21. #define __XORG_XWACOM_H
  22.  
  23. #include <X11/keysym.h>
  24.  
  25. #define TV_NONE         0
  26. #define TV_ABOVE_BELOW         1
  27. #define TV_LEFT_RIGHT        2
  28. #define TV_BELOW_ABOVE        3
  29. #define TV_RIGHT_LEFT        4
  30. #define TV_MAX            4
  31.  
  32. #define ROTATE_NONE         0
  33. #define ROTATE_CW         1
  34. #define ROTATE_CCW         2
  35. #define ROTATE_HALF         3
  36.  
  37. #define XWACOM_MAX_SAMPLES    20
  38.  
  39. /* The following flags are used for button action property values to mark
  40.  * the type of event that should be emitted when that button is pressed;
  41.  * combined together they form an Action Code (AC). Each button has up to
  42.  * 256 actions on press, where a zero terminates the actions.
  43.  *
  44.  * e.g.
  45.  * AC_KEY | AC_KEYBTNPRESS | <keycode> is a key press for key <keycode>.
  46.  * AC_BUTTON | AC_KEYBTNPRESS | 1 is a button press for 1
  47.  * AC_BUTTON | 1 is a button release for 1
  48.  *
  49.  * if no action is set for a button, the button behaves normally.
  50.  */
  51. #define AC_CODE             0x0000ffff    /* Mask to isolate button number or key code */
  52. #define AC_KEY              0x00010000    /* Emit key events */
  53. #define AC_MODETOGGLE       0x00020000    /* Toggle absolute/relative mode */
  54. #define AC_DBLCLICK         0x00030000    /* DEPRECATED: use two button events instead */
  55. #define AC_DISPLAYTOGGLE    0x00040000 /* Toggle among screens */
  56. #define AC_BUTTON           0x00080000    /* Emit button events */
  57. #define AC_TYPE             0x000f0000    /* The mask to isolate event type bits */
  58. #define AC_KEYBTNPRESS      0x00100000  /* bit set for key/button presses */
  59. #define AC_CORE             0x10000000    /* DEPRECATED: has no effect */
  60. #define AC_EVENT            0xf00f0000    /* Mask to isolate event flag */
  61.  
  62. #endif /* __XORG_XWACOM_H */
  63.